package core

import (
	ctypes "github.com/tendermint/tendermint/rpc/core/types"
	rpctypes "github.com/tendermint/tendermint/rpc/jsonrpc/types"
)

func MPTHash(ctx *rpctypes.Context) (*ctypes.ResultMPTHash, error) {
	hash := env.BlockStore.MPTHash()
	return &ctypes.ResultMPTHash{MPTHash: hash.Bytes()}, nil
}
